import request from './request.js';
/**
 * 平台：百度
 */
/**
 * 图片识别
 * @param {Object} params
 */
export function ocrToText(params) {
	return request({
		url: '/baiduOcr/ocr',
		method: 'post',
		headers: {
			"Content-Type": "multipart/form-data"
		},
		data: params,
	});
}
/**
 * 图片翻译
 * @param {Object} params
 */
export function ImgOcrTranslateToText(params) {
	return request({
		url: '/baiduTranslate/imageTranslate',
		method: 'post',
		headers: {
			"Content-Type": "multipart/form-data"
		},
		data: params,
	});
}
/**
 * 文本翻译
 * @param {Object} params
 */
export function TextTranslate(params) {
	return request({
		url: '/baiduTranslate/commonTranslate',
		method: 'post',
		data: params,
	});
}
